﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using YJKRGeometry;

namespace HangerSupport
{
	public class LevelComparer : IComparer<Level>
	{
		public int Compare(Level lhv, Level rhv)
		{
			bool flag = Geometry.IsEqual(lhv.Elevation, rhv.Elevation);
			int result;
			if (flag)
			{
				result = 0;
			}
			else
			{
				bool flag2 = Geometry.LessThan(lhv.Elevation, rhv.Elevation);
				if (flag2)
				{
					result = -1;
				}
				else
				{
					result = 1;
				}
			}
			return result;
		}
	}
}
